CFLAGS = -g

OBJECTS = main.o \
          eval.o \
          globals.o \
          init.o \
          prim.o \
          printer.o \
          reader.o \
          stoken.o \
          util.o

scheme: $(OBJECTS)
	cc -o scheme $(CFLAGS) $(OBJECTS) -lfl

stoken.o: stoken.l

test: test.in scheme
	./scheme test.in

clean:
	rm -f $(OBJECTS)
	rm -f scheme
